package yuyi;

import java.util.List;

public class TestPOJO {


    /**
     * tableHanZiName : 信访举报
     * tableName : a01_self1
     * fields : [{"fieldHanZiName":"【动态】01.文本框","fieldName":"a0184","type":"text","layVerify":"required"},{"fieldHanZiName":"【动态】02.长文本","fieldName":"cwb","type":"textarea","layVerify":"required"},{"fieldHanZiName":"【动态】03.下拉框","fieldName":"startTime","type":"option","layVerify":"required","selectDataSource":[{"key":"001","value":"男"},{"key":"002","value":"女"}]},{"fieldHanZiName":"【动态】04.时间框","fieldName":"datetime","type":"datetime","layVerify":"required","isNeedToRenderToDate":"1"},{"fieldHanZiName":"【动态】05.数字框","fieldName":"number","type":"number","layVerify":"required|number"}]
     */

    private String tableHanZiName;
    private String tableName;
    private List<FieldsBean> fields;

    public String getTableHanZiName() {
        return tableHanZiName;
    }

    public void setTableHanZiName(String tableHanZiName) {
        this.tableHanZiName = tableHanZiName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List<FieldsBean> getFields() {
        return fields;
    }

    public void setFields(List<FieldsBean> fields) {
        this.fields = fields;
    }

    public static class FieldsBean {
        /**
         * fieldHanZiName : 【动态】01.文本框
         * fieldName : a0184
         * type : text
         * layVerify : required
         * selectDataSource : [{"key":"001","value":"男"},{"key":"002","value":"女"}]
         * isNeedToRenderToDate : 1
         */

        private String fieldHanZiName;
        private String fieldName;
        private String type;
        private String layVerify;
        private String isNeedToRenderToDate;
        private List<SelectDataSourceBean> selectDataSource;

        public String getFieldHanZiName() {
            return fieldHanZiName;
        }

        public void setFieldHanZiName(String fieldHanZiName) {
            this.fieldHanZiName = fieldHanZiName;
        }

        public String getFieldName() {
            return fieldName;
        }

        public void setFieldName(String fieldName) {
            this.fieldName = fieldName;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getLayVerify() {
            return layVerify;
        }

        public void setLayVerify(String layVerify) {
            this.layVerify = layVerify;
        }

        public String getIsNeedToRenderToDate() {
            return isNeedToRenderToDate;
        }

        public void setIsNeedToRenderToDate(String isNeedToRenderToDate) {
            this.isNeedToRenderToDate = isNeedToRenderToDate;
        }

        public List<SelectDataSourceBean> getSelectDataSource() {
            return selectDataSource;
        }

        public void setSelectDataSource(List<SelectDataSourceBean> selectDataSource) {
            this.selectDataSource = selectDataSource;
        }

        public static class SelectDataSourceBean {
            /**
             * key : 001
             * value : 男
             */

            private String key;
            private String value;

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }
    }
}
